package net.zjitc.securityloginpage.controller;

import org.springframework.stereotype.Controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 罗翼侨
 * @date 2025/3/4 9:49
 */
@Controller
public class UserController {
    @RequestMapping(value = "/")
    public @ResponseBody String index(){
        return "Welcome to Spring Security";
    }
    @RequestMapping(value = "/toLogin")
    public String toLogin(){
        return "login";
    }
}
